package com.bingxue.edu.management.education.model.resp;

import com.bingxue.edu.management.education.model.entity.EnrollChangeRecord;
import com.bingxue.edu.management.shop.model.entity.Refund;
import com.mybatisflex.annotation.RelationManyToOne;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "退班退课返回信息")
@TableRef(EnrollChangeRecord.class)
public class ClassCancelResp extends EnrollChangeRecord {

    @Schema(description = "学生信息")
    private StudentNameResp student;

    @Schema(description = "校区id")
    private String campusId;

    @RelationManyToOne(selfField = "campusId", targetTable = "base_org", targetField = "id", valueField = "name")
    @Schema(description = "校区名称")
    private String campusName;

    @Schema(description = "原始班级名称")
    private String originalClassName;

    @Schema(description = "原班级老师id")
    private String originalLeadTeacherId;

    @RelationManyToOne(selfField = "originalLeadTeacherId", targetTable = "base_employee", targetField = "id", valueField = "name")
    @Schema(description = "原班级老师名称")
    private String originalLeadTeacherName;

    @RelationManyToOne(selfField = "businessId", targetTable = "shop_refund", targetField = "id")
    private Refund refund;

}
